package data {
	
	/**
	 * @author Brent Kersanske
	 */ 
	public class Result	{
		
		private var _questionID:String;
		private var _correctOption:String;
		private var _optionSelected:String;
		private var _reactionTime:Number;
		private var _difficultyRating:Number;
		
		public function Result(questionID:String, correctOption:String, optionSelected:String, reactionTime:Number, difficultyRating:Number) {
			this.questionID       = questionID;
			this.correctOption    = correctOption;
			this.optionSelected   = optionSelected;
			this.reactionTime     = reactionTime;
			this.difficultyRating = difficultyRating;
		}
		
		public function get questionID():String {
			return _questionID;
		}
		
		public function set questionID(questionID:String):void {
			_questionID = questionID;
		}
		
		public function get correctOption():String {
			return _correctOption;
		}
		
		public function set correctOption(correctOption:String):void {
			_correctOption = correctOption;
		}
		
		public function get optionSelected():String {
			return _optionSelected;
		}
		
		public function set optionSelected(optionSelected:String):void {
			_optionSelected = optionSelected;
		}
		
		public function get reactionTime():Number {
			return _reactionTime;
		}
		
		public function set reactionTime(reactionTime:Number):void {
			_reactionTime = reactionTime;
		}
		
		public function get difficultyRating():Number {
			return _difficultyRating;
		}
		
		public function set difficultyRating(difficultyRating:Number):void {
			_difficultyRating = difficultyRating;
		}
		
		public function getResultAsHTMLRow():String {
			return "<tr>\n" +  
					"<td>" + this.questionID + "</td>\n"+
					"<td>" + this.correctOption + "</td>\n" +
					"<td>" + this.optionSelected + "</td>\n" + 
					"<td>" + this.reactionTime + "</td>\n" + 
					"<td>" + this.difficultyRating + "</td>\n" +
					"</tr>";
		}
		
		
	}
}